<h4 class="sets" onClick="Effect.toggle('stats_tables','slide');">stats for set <%=h @fset.name %><span>Score: <%= @last_score %>/<%= @out_of %></span></h4>

<div class="stats_control">
<ul>

	<li><%= link_to '', fplay_fset_url(@fset), { :class => "play" } %></li>
	<li><%= link_to '', just_wrong_fset_url(@fset), { :class => "play_wrong" } %></li>
	<li><%= link_to '', until_correct_fset_url(@fset), { :class => "play_until" } %></li>
	<li><%= link_to '', edit_fset_path(@fset), { :class => "edit" } %></li>
	</ul><div class="stars"><%= ratings_for @fset %></div>
	<div class="clear">&nbsp;</div>
</div>

<ul>

	<li>	<a href="#" class="stats" onClick="Effect.toggle('stats_tables','slide');"></a></li>
	</ul>

	
	
<div id="stats_tables">

	<table class="fleft">
		<th>
	Percentage of cards correct <br>during previous trials 
	</th>
	<tr><td>
	<%= horizontal_bar_graph_blue  @graph_info %>
	</td></tr></table>
	
<table class="fleft">
	<th>
Percentage correct for each card
</th>
<tr><td>
<%= horizontal_bar_graph @graph_info_cards %>
</td></tr></table>
</div>



	<div class="clear">&nbsp;</div>
	
<div class="tag_cloud">
	<div id="tags">
		<% for tag in @tags %>
	<%= "<span id='tag_"+tag+"' class='tg'>" %>
		<%= tag+link_to_remote('delete', :url => {:action => "delete_tag", :fset => @fset, :tag => tag}, :html => { 	:class=>'tag_delete_link',	:onclick=>'document.getElementById(\'tag_'+tag+'\').style.display="none"'}) %>
		<%= "</span>" %>
		<% end %>
	</div>
<div class="clear">&nbsp;</div>
	<% remote_form_for(@fset,  :url => add_tag_fset_url(@fset), :html=> {:method=>:post}) do |f| %>
		<%= f.error_messages %>
		<%= f.text_field :tag_list, :value=>"" %>
		<%= f.submit "", {:class => "tagit"} %>
	<% end %>
</div>		 
